home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / misc / o-z / x-windows / mesa-amiwin / src / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-30  |  3.6 KB  |  155 lines

  1. /* config.h */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  1.2
  6.  * Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25.  * Tunable configuration parameters.
  26.  */
  27.  
  28.  
  29. /*
  30. $Id: config.h,v 1.9 1995/08/31 21:33:11 brianp Exp $
  31.  
  32. $Log: config.h,v $
  33.  * Revision 1.9  1995/08/31  21:33:11  brianp
  34.  * changed MAX_TEXTURE_LEVELS to  10
  35.  *
  36.  * Revision 1.8  1995/06/20  16:30:23  brianp
  37.  * added SUB_PIX defines and DEPTH_SCALE
  38.  *
  39.  * Revision 1.7  1995/05/31  19:20:20  brianp
  40.  * removed MAX_VERTICES
  41.  *
  42.  * Revision 1.6  1995/05/22  20:59:34  brianp
  43.  * Release 1.2
  44.  *
  45.  * Revision 1.5  1995/03/24  15:16:36  brianp
  46.  * replaced ACCUM_BITS with ACC_TYPE
  47.  *
  48.  * Revision 1.4  1995/03/04  19:25:29  brianp
  49.  * 1.1 beta revision
  50.  *
  51.  * Revision 1.3  1995/03/04  19:17:13  brianp
  52.  * changed max line width to 10.0
  53.  *
  54.  * Revision 1.2  1995/02/24  15:13:56  brianp
  55.  * *** empty log message ***
  56.  *
  57.  * Revision 1.1  1995/02/24  14:13:18  brianp
  58.  * Initial revision
  59.  *
  60.  */
  61.  
  62.  
  63. #ifndef CONFIG_H
  64. #define CONFIG_H
  65.  
  66.  
  67.  
  68. /* Maximum modelview matrix stack depth: */
  69. #define MAX_MODELVIEW_STACK_DEPTH 32
  70.  
  71. /* Maximum projection matrix stack depth: */
  72. #define MAX_PROJECTION_STACK_DEPTH 32
  73.  
  74. /* Maximum texture matrix stack depth: */
  75. #define MAX_TEXTURE_STACK_DEPTH 8
  76.  
  77. /* Maximum attribute stack depth: */
  78. #define MAX_ATTRIB_STACK_DEPTH 16
  79.  
  80. /* Maximum number of display lists: */
  81. #define MAX_DISPLAYLISTS 2000
  82.  
  83. /* Maximum recursion depth of display list calls: */
  84. #define MAX_LIST_NESTING 64
  85.  
  86. /* Maximum number of lights: */
  87. #define MAX_LIGHTS 8
  88.  
  89. /* Maximum user-defined clipping planes: */
  90. #define MAX_CLIP_PLANES 6
  91.  
  92. /* Number of bits/pixel in stencil buffer: */
  93. #define STENCIL_BITS 8
  94.  
  95. /* Datatype for accumulation buffer components (GLbyte or GLshort): */
  96. #define ACC_TYPE GLshort
  97.  
  98. /* Number of texture levels */
  99. #define MAX_TEXTURE_LEVELS 10
  100.  
  101. /* Max texture size */
  102. #define MAX_TEXTURE_SIZE   (1 << (MAX_TEXTURE_LEVELS-1))
  103.  
  104. /* Maximum pixel map lookup table size: */
  105. #define MAX_PIXEL_MAP_TABLE 256
  106.  
  107. /* Number of bits of red, green, blue and alpha in color buffer: */
  108. /* TODO: remove, this is a temporary kludge */
  109. #define COLOR_BITS 8
  110.  
  111. /* Number of auxillary color buffers: */
  112. #define NUM_AUX_BUFFERS 0
  113.  
  114. /* Maximum order (degree) of curves: */
  115. #ifdef AMIGA
  116. #   define MAX_EVAL_ORDER 12
  117. #else
  118. #   define MAX_EVAL_ORDER 30
  119. #endif
  120.  
  121. /* Maximum Name stack depth */
  122. #define MAX_NAME_STACK_DEPTH 64
  123.  
  124. /* Min and Max point sizes and granularity */
  125. #define MIN_POINT_SIZE 1.0
  126. #define MAX_POINT_SIZE 10.0
  127. #define POINT_SIZE_GRANULARITY 1.0
  128.  
  129. /* Min and Max line widths and granularity */
  130. #define MIN_LINE_WIDTH 1.0
  131. #define MAX_LINE_WIDTH 10.0
  132. #define LINE_WIDTH_GRANULARITY 1.0
  133.  
  134.  
  135. /* Maximum viewport size: */
  136. #ifdef AMIGA
  137. #  define MAX_WIDTH 640
  138. #  define MAX_HEIGHT 400
  139. #else
  140. #  define MAX_WIDTH 1280
  141. #  define MAX_HEIGHT 1024
  142. #endif
  143.  
  144.  
  145. /* Maximum depth buffer value: */
  146. #define MAX_DEPTH 0x0fffffff
  147.  
  148. /* Sub-pixel window coordinate scaling: */
  149. #define SUB_PIX_SCALE 256.0
  150. #define SUB_PIX_SHIFT 8
  151.  
  152. #define DEPTH_SCALE ((GLfloat) 0x0fffffff)
  153.  
  154. #endif
  155.